package com.uni.controller;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.uni.base.RestResponse;
import com.uni.pojo.User;
import com.uni.service.UserService;
import com.uni.utils.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Author:      Unirithe/Mr.Chao
 * CSDN:        https://blog.csdn.net/Unirithe
 * CreatedTime:  2022/2/13 8:39
 **/
@Controller
public class AdminController {

    private final int pageSize = 6;
    @Autowired
    private UserService userService;
    @GetMapping("/admin/user")
    public String toAdminUser(){
        return "admin";
    }
    @GetMapping("/admin/role")
    public String toAdminRole(ModelMap modelMap) {
        modelMap.addAttribute("type", "role");
        return "admin";
    }

}
